/*
 * @Author: dark-snow 1306808708@qq.com
 * @Date: 2023-07-07 09:43:06
 * @LastEditors: dark-snow 1306808708@qq.com
 * @LastEditTime: 2023-07-07 14:49:42
 * @FilePath: \wifi_server_030704\components\user_peripheral\include\user_spi.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef _USER_SPI_H_
#define _USER_SPI_H_

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

#include "esp_log.h"
#include "driver/spi_master.h"
#include "driver/gpio.h"

#include "string.h"


esp_err_t spi_write(spi_device_handle_t spi, uint8_t *data, uint8_t len);
esp_err_t spi_read(spi_device_handle_t spi, uint8_t *data);
#endif
